Skip to content

Add subtype for importer#74

Merged
mmacata merged 3 commits intoactinia-org:mainfrom
mmacata:subtype_for_importer
Feb 26, 2026
Merged

Add subtype for importer#74
mmacata merged 3 commits intoactinia-org:mainfrom
mmacata:subtype_for_importer

Conversation

@mmacata
Copy link
Copy Markdown
Member

@mmacata mmacata commented Feb 26, 2026

This PR adds "subtype": "datasource" to a parameter in an actinia module for the importer.
Example of how process description is now returned:

{
    "description": "The input source that may be a landsat scene name, a sentinel2 scene name, a postGIS database string, or an URL that points to an accessible raster or vector file [generated from import_descr_source]",
    "name": "url_to_geojson_point",
    "optional": true,
    "schema": {
        "subtype": "datasource",
        "type": "string"
    }
}

Not changed in this PR but also "datasource" as subtype is also possible for some GRASS GIS modules, e.g. for v.import

{
  "categories": [
    "grass-module",
    "import",
    "projection",
    "vector"
  ],
  "description": "Imports vector data into a GRASS vector map using OGR library and reprojects on the fly.",
  "id": "v.import",
  "parameters": [
    {
      "description": "Name of OGR datasource to be imported. ",
      "name": "input",
      "optional": false,
      "schema": {
        "subtype": "datasource",
        "type": "string"
      }
    },

mmacata and others added 2 commits February 26, 2026 14:22
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@mmacata mmacata merged commit b010605 into actinia-org:main Feb 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants